package com.Java.train.business.entity.DTO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
@TableName("daily_train")
@ToString
@ApiModel(value = "DailyTrain对象", description = "每日车次")
public class ConfirmOrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("会员id")
    @TableField("member_id")
    private Long memberId;

    @ApiModelProperty("日期")
    @TableField("date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty("车次编号")
    @TableField("train_code")
    private String trainCode;

    @ApiModelProperty("出发站")
    @TableField("start")
    private String start;

    @ApiModelProperty("到达站")
    @TableField("end")
    private String end;

    @ApiModelProperty("余票ID")
    @TableField("daily_train_ticket_id")
    private Long dailyTrainTicketId;

    @ApiModelProperty("车票")
    @TableField("tickets")
    private String tickets;

    @ApiModelProperty("订单状态|枚举[ConfirmOrderStatusEnum]")
    @TableField("status")
    private String status;

}
